package com.weibiao.zhuhai.concurrent.xiezuo;

public class FireFlag {
	public static void main(String[] args) {
		Thread t = new Thread() {
			@Override
			public void run() {
				try {
					Thread.sleep(2000);
				} catch (InterruptedException e) {
					System.out.println(this.isInterrupted());
				}
			}
		};
		t.start();
		System.out.println("a" + t.isInterrupted());
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		t.interrupt();
	}
}